import java.math.BigInteger;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        StringBuilder i = new StringBuilder();
        i.append("9");
        //StringBuilder j = new StringBuilder();
        //j.append("0");
        BigInteger j = BigInteger.ZERO;
        while(i.length() < 11){
            j = j.add(new BigInteger(i.toString()));
            i.append("9");

        }
        System.out.println(j);
        String k = "9999999999";
        System.out.println(k.length());
    }
    public static void main2(String[] args) {
        StringBuilder i = new StringBuilder();
        i.append("9");
        System.out.println(i.length());

    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        String emailMatcher="[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+";

        //write your code here......
        if(str.matches(emailMatcher)){
            System.out.println("邮箱格式合法");
        }else{
            System.out.println("邮箱格式不合法");
        }
    }
}
